libostree: Add ostree_async_progress_copy_state()
authorPhilip Chimento <philip@endlessm.com>
Mon, 4 Nov 2019 21:21:36 +0000 (13:21 -0800)
committerPhilip Chimento <philip@endlessm.com>
Wed, 20 Nov 2019 20:24:26 +0000 (12:24 -0800)
commit54639c03ca7713d71088f1ac9d323063d4c116d7
treed1b714cc8255b430505b714efe4a7c8d5a68011c
parent382ad59822ebbc7b3ca30058bb5bb450a6ff91be
libostree: Add ostree_async_progress_copy_state()

This allows copying the state from one OstreeAsyncProgress object to
another, atomically, without invoking the callback. This is needed in
libflatpak, in order to chain OstreeAsyncProgress objects so that you
can still receive progress updates when iterating a different
GMainContext than the one that the OstreeAsyncProgress object was
created under.

See https://github.com/flatpak/flatpak/pull/3211 for the application of
this API.
apidoc/ostree-sections.txt
src/libostree/libostree-devel.sym
src/libostree/ostree-async-progress.c
src/libostree/ostree-async-progress.h